<template>
  <h3 style="color: dodgerblue">专家评审</h3>
  <table style="width: 90%; text-align: left; border-collapse: collapse">
    <thead>
      <tr>
        <td class="table_style" colspan="3">项目名称：</td>
      </tr>
      <tr>
        <th class="table_style">评审指标(分数)</th>
        <th class="table_style">指标内容和权重</th>
        <th class="table_style">分值(分数)</th>
      </tr>
    </thead>
    <tbody>
      <tr v-for="(item, index) in Reviewstandar" :key="index">
        <td class="table_style">{{ item.standarName }}</td>
        <td class="table_style">{{ item.remark }}</td>
        <td class="table_style">
          <el-input v-model="Score[index]"></el-input>
        </td>
      </tr>
    </tbody>
  </table>
  <br />
  <br />
  <div style="text-align: center">
    <el-button type="primary">暂存</el-button>
    <br />
    <p>注意：暂存诗句之后点击列表页的（查看评审汇总）按钮确认评审数据并提交</p>
  </div>
</template>

<script>
export default {
  data() {
    return {
      Reviewstandar: undefined,
      Score: [],
    };
  },
  created() {
    this.GetReviewstandar();
  },
  methods: {
    GetReviewstandar() {
      this.http.get("api/tb_project_reviewstandar/list").then((res) => {
        this.Reviewstandar = res.data;
        console.log(this.Reviewstandar);
      });
    },
  },
};
</script>


<style>
.table_style {
  border: 1px solid #ccc;
  height: 50px;
  text-align: center;
}
</style>
<!-- 雪花id包
npm install snowflake-id -->